<template>
  <Dialog
  width="60%"
    :title="title"
    :close-on-click-modal="false"
    :show-close="false"
    :visible.sync="visible"
    >
    <div>{{ message }}</div>
    <div slot="footer">
      <Button>取消</Button>
      <Button type="primary">确定</Button>
    </div>
  </Dialog>
</template>
<script>
import { Dialog, Button } from "element-ui";
export default {
  name: "MyConfirm",
  components: {
    Dialog,
    Button,
    data() {
      return {
        /**
         * 是否显示
         */
        visible: true,
      };
    },
  },
  props: {
    /**
     * 标题
     */
    title: String,
    /**
     *消息 message:String,
     */
    message: String,
  },
};
</script>
